mirror of
https://github.com/yude-jp/yude.jp
synced 2024-12-22 20:20:09 +09:00
Update return format
This commit is contained in:
parent
971be8ab25
commit
c957d791a6
@ -27,7 +27,7 @@ function App (){
|
||||
const yes_playing = t('yes_playing', {playing: data.members[0].game.name})
|
||||
return <p>{yes_playing}</p>
|
||||
}else{
|
||||
return <p></p>
|
||||
return <></>
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -16,9 +16,9 @@ function App (props) {
|
||||
}, []);
|
||||
if (data === undefined){
|
||||
console.log("[Minecraft: UUID to player's name] データの取得に失敗しました。 / Failed to retrieve data.")
|
||||
return <span></span>
|
||||
return <></>
|
||||
}else {
|
||||
return <span>{data.username}</span>
|
||||
return <>{data.username}</>
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ function App () {
|
||||
const status = data.artist + ' / ' + data.title
|
||||
return <p>{t('listening', {listening: status})}</p>
|
||||
}else{
|
||||
return <p></p>
|
||||
return <></>
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user