Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
ttwishing committed Oct 2, 2024
1 parent 5493dd7 commit a858804
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/pages/resources/components/forms/powerup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import {systemToken} from '~/stores/tokens'
import {systemTokenBalance} from '~/stores/balances'
import {
cpuPowerupPrice as powerupPrice,
cpuPowerupPrice,
netPowerupPrice,
sampleUsage,
statePowerUp,
} from '~/pages/resources/resources'
Expand All @@ -27,7 +28,7 @@
export let resource: string = 'cpu'
const unit = resource === 'cpu' ? 'ms' : 'kb'
// const powerupPrice = resource === 'cpu' ? cpuPowerupPrice : netPowerupPrice
const powerupPrice = resource === 'cpu' ? cpuPowerupPrice : netPowerupPrice
let amount: Writable<string> = writable('')
let error: string | undefined
Expand Down
10 changes: 6 additions & 4 deletions src/pages/resources/components/state/prices.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
import {activeBlockchain} from '~/store'
import {
cpuPowerupPrice as powerupPrice,
cpuPowerupPrice,
netPowerupPrice,
rexPrice,
cpuStakingPrice as stakingPrice,
cpuStakingPrice,
netStakingPrice,
} from '~/pages/resources/resources'
import Button from '~/components/elements/button.svelte'
Expand All @@ -17,8 +19,8 @@
export let resource = 'cpu'
const unit = resource === 'cpu' ? 'ms' : 'kb'
// const powerupPrice = resource === 'cpu' ? cpuPowerupPrice : netPowerupPrice
// const stakingPrice = resource === 'cpu' ? cpuStakingPrice : netStakingPrice
const powerupPrice = resource === 'cpu' ? cpuPowerupPrice : netPowerupPrice
const stakingPrice = resource === 'cpu' ? cpuStakingPrice : netStakingPrice
const {PowerUp, REX, Staking} = ChainFeatures
Expand Down

0 comments on commit a858804

Please sign in to comment.