Skip to content

Commit

Permalink
fix: check
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Jan 4, 2025
1 parent f1d2f75 commit 2da3fb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const SUDTAccountList = () => {
break
}
setReceiveData({
acccountID: account.acccountID,
accountId: account.accountId,
address: account.address,
accountName: account.accountName ?? DEFAULT_SUDT_FIELDS.accountName,
tokenName: account.tokenName ?? DEFAULT_SUDT_FIELDS.tokenName,
Expand Down
6 changes: 3 additions & 3 deletions packages/neuron-ui/src/components/SUDTReceiveDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { DEFAULT_SUDT_FIELDS } = CONSTANTS

export interface DataProps {
address: string
acccountID: string
accountId: string
accountName: string
tokenName: string
symbol: string
Expand All @@ -22,7 +22,7 @@ export interface DataProps {
const SUDTReceiveDialog = ({ data, onClose }: { data: DataProps; onClose?: () => void }) => {
const [t] = useTranslation()
const [isInShortFormat, setIsInShortFormat] = useState(false)
const { address, acccountID, accountName, tokenName, symbol } = data
const { address, accountId, accountName, tokenName, symbol } = data

const displayedAddr = isInShortFormat ? addressToAddress(address, { deprecated: true }) : address

Expand Down Expand Up @@ -53,7 +53,7 @@ const SUDTReceiveDialog = ({ data, onClose }: { data: DataProps; onClose?: () =>

<AddressQrCodeWithCopyZone
showAddress={displayedAddr}
assetAccountId={acccountID}
assetAccountId={accountId}
isInShortFormat={isInShortFormat}
onClick={() => setIsInShortFormat(is => !is)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type Story = StoryObj<typeof SUDTReceiveDialog>
export const Default: Story = {
args: {
data: {
acccountID: '1',
accountId: '1',
address: 'ckt1q9gry5zg8stq8ruq5wfz3lm5wn2k7qw3ulsfmdhe98f2j1',
accountName: 'account name',
tokenName: 'token name',
Expand Down

1 comment on commit 2da3fb3

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Packaging for test is done in 12612151835

Please sign in to comment.