Skip to content

Commit

Permalink
fix: add missing braces for conditional checks in AgentNotRunningButt…
Browse files Browse the repository at this point in the history
…on and StakingRewardsThisEpoch components
  • Loading branch information
mohandast52 committed Dec 6, 2024
1 parent 235e8bf commit bd0e8a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ export const AgentNotRunningButton = () => {
!isNil(hasEnoughServiceSlots) &&
!hasEnoughServiceSlots &&
!isServiceStaked
)
) {
return false;
}

const masterSafeOlasBalance = masterSafeBalances?.find(
(walletBalanceResult) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,15 @@ export const StakingRewardsThisEpoch = () => {

const popoverContent = useMemo(() => {
if (!isActiveStakingProgramLoaded) return <Skeleton.Input />;
if (!activeStakingProgramMeta)

if (!activeStakingProgramMeta) {
return (
<div style={{ maxWidth: POPOVER_WIDTH_MEDIUM }}>
You&apos;re not yet in a staking program!
</div>
);
}

return (
<div style={{ maxWidth: POPOVER_WIDTH_MEDIUM }}>
The epoch for {stakingProgramMeta?.name} ends each day at ~{' '}
Expand Down

0 comments on commit bd0e8a2

Please sign in to comment.