Skip to content

Display number of shares in Sapphire undelegate transactions #1892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

kaja-osojnik
Copy link
Collaborator

@kaja-osojnik kaja-osojnik commented Apr 11, 2025

Copy link

github-actions bot commented Apr 11, 2025

Deployed to Cloudflare Pages

Latest commit: 17a22047da2894791ed317867ebe283de22851db
Status:✅ Deploy successful!
Preview URL: https://76581ecd.oasis-explorer.pages.dev
Alias: https://pr-1892.oasis-explorer.pages.dev

@kaja-osojnik kaja-osojnik force-pushed the kaja/sapphire-undelegate-shares branch from b84f6ab to 65dd244 Compare April 22, 2025 12:28
kaja-osojnik added a commit that referenced this pull request Apr 22, 2025
@kaja-osojnik kaja-osojnik requested a review from lukaw3d April 22, 2025 12:41
@lukaw3d lukaw3d changed the title Show undelegated shares on Sapphire Fix Sapphire undelegate transactions not displaying number of shares Apr 23, 2025
@lukaw3d lukaw3d changed the title Fix Sapphire undelegate transactions not displaying number of shares Fix Sapphire undelegate transactions: display number of shares Apr 23, 2025
@lukaw3d lukaw3d force-pushed the kaja/sapphire-undelegate-shares branch from ff8dfea to a5cd9d2 Compare April 23, 2025 03:17
Comment on lines +161 to +169
transaction.amount && transaction.amount !== '0' ? (
<RoundedBalance value={transaction.amount} ticker={transaction.amount_symbol} />
) : (
<RoundedBalance
compactLargeNumbers
value={transaction?.body?.shares}
ticker={t('common.shares')}
/>
),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this to better match ConsensusAmount

before:

                  <RoundedBalance
                    compactLargeNumbers
                    value={transaction?.body?.shares ?? transaction.amount}
                    ticker={transaction?.body?.shares ? t('common.shares') : transaction.amount_symbol}
                  />

@lukaw3d lukaw3d force-pushed the kaja/sapphire-undelegate-shares branch 2 times, most recently from cd6d46a to e55ea08 Compare April 23, 2025 03:20
@lukaw3d lukaw3d force-pushed the kaja/sapphire-undelegate-shares branch from e55ea08 to 17a2204 Compare April 23, 2025 03:20
@lukaw3d lukaw3d changed the title Fix Sapphire undelegate transactions: display number of shares Display number of shares in Sapphire undelegate transactions Apr 23, 2025
@lukaw3d lukaw3d merged commit d165414 into master Apr 23, 2025
9 checks passed
@lukaw3d lukaw3d deleted the kaja/sapphire-undelegate-shares branch April 23, 2025 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sapphire undelegate tx doesn't show how many shares were undelegated
2 participants