diff --git a/src/components/SongInfo.js b/src/components/SongInfo.js index 557fbae..55d407d 100644 --- a/src/components/SongInfo.js +++ b/src/components/SongInfo.js @@ -60,7 +60,7 @@ export default class SongInfo extends Component { const bsr = beatSaverData.bsr; const { songName, songAuthorName, difficulty } = data; const songTimerPercentage = - (this.props.data.currentSongTime / data.length) * 100; + (this.props.data.currentSongTime / data.length) * 100000; return (
diff --git a/src/helpers/beatSaverHelpers.ts b/src/helpers/beatSaverHelpers.ts index 853a0d0..9c04028 100644 --- a/src/helpers/beatSaverHelpers.ts +++ b/src/helpers/beatSaverHelpers.ts @@ -28,7 +28,7 @@ type MapData = { * @param {string} hash * @returns The map data */ -export async function getMapData(hash): Promise { +export async function getMapData(hash: string): Promise { const mapHash = hash.replace("custom_level_", "").toLowerCase(); const key = `${KEY}${mapHash}`;