diff --git a/packages/shared/lib/participation/constants.ts b/packages/shared/lib/participation/constants.ts index 477cf7efe92..7f80d7c5f04 100644 --- a/packages/shared/lib/participation/constants.ts +++ b/packages/shared/lib/participation/constants.ts @@ -75,18 +75,18 @@ export const SHIMMER_STAKING_RESULT_FILES: string[] = ['shimmer.json'] export const LAST_ASSEMBLY_STAKING_PERIOD = 2 /** - * The number of the last completed Assembly staking period. + * The number of the current Assembly staking period. * Set to 0 if no current event */ export const CURRENT_ASSEMBLY_STAKING_PERIOD = 3 /** - * The number of the last completed Assembly staking period. + * The number of the last completed Shimmer staking period. */ export const LAST_SHIMMER_STAKING_PERIOD = 1 /** - * The number of the last completed Assembly staking period. + * The number of the current Shimmer staking period. * Set to 0 if no current event */ export const CURRENT_SHIMMER_STAKING_PERIOD = 0 diff --git a/packages/shared/lib/participation/staking.ts b/packages/shared/lib/participation/staking.ts index a36fe1b993e..7ecca3b2a27 100644 --- a/packages/shared/lib/participation/staking.ts +++ b/packages/shared/lib/participation/staking.ts @@ -136,7 +136,7 @@ export const formatStakingAirdropReward = (airdrop: StakingAirdrop, amount: numb const [integer, float] = (amount / 1_000_000).toFixed(decimalPlaces).split('.') let reward: string - const shouldModifyForGlowUnits = Number(integer) <= 0 && airdrop === StakingAirdrop.Shimmer + const shouldModifyForGlowUnits = Number(integer) <= 0 && Number(float) > 0 && airdrop === StakingAirdrop.Shimmer if (shouldModifyForGlowUnits) { reward = `${delineateNumber(float, thousandthSeparator)}` ?? '0' return `${reward} glow`