Skip to content

Commit

Permalink
Fix next rank line in score modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyanreyer committed Apr 13, 2023
1 parent 429f5c9 commit 32c0e9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/_components/current-score.webc
Expand Up @@ -36,7 +36,9 @@
<h2>Rankings</h2>
<p>Current score: <span x-text="$store.game.currentScore"></span></p>
<template x-if="$store.game.nextRank">
<p x-text="$store.game.nextRank.name"></p>
<p
x-text="`${Math.floor($store.game.nextRank.percent * $store.game.totalPossibleScore) - $store.game.currentScore} points to next rank: ${$store.game.nextRank.name}`"
></p>
</template>
<template x-if="$store.game.isMaster">
<p>You found every word! Great job!</p>
Expand Down
2 changes: 1 addition & 1 deletion src/pwa/serviceWorker.js
@@ -1,4 +1,4 @@
const cacheName = "open-spelling-bee-1.1.7";
const cacheName = "open-spelling-bee-1.1.8";
const cacheFiles = [
"/",
"/index.html",
Expand Down

0 comments on commit 32c0e9a

Please sign in to comment.