Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
ab509801
Commit
ab509801
authored
Nov 07, 2024
by
isstuev
Committed by
tom goriunov
Nov 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token transfer total is possibly null
parent
a30c0fd6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
TokenTransferListItem.tsx
ui/shared/TokenTransfer/TokenTransferListItem.tsx
+1
-1
TokenTransferTableItem.tsx
ui/shared/TokenTransfer/TokenTransferTableItem.tsx
+1
-1
TokenTransferListItem.tsx
ui/token/TokenTransfer/TokenTransferListItem.tsx
+1
-1
TokenTransferTableItem.tsx
ui/token/TokenTransfer/TokenTransferTableItem.tsx
+1
-1
TokenTransfersListItem.tsx
ui/tokenTransfers/TokenTransfersListItem.tsx
+1
-1
TokenTransfersTableItem.tsx
ui/tokenTransfers/TokenTransfersTableItem.tsx
+1
-1
No files found.
ui/shared/TokenTransfer/TokenTransferListItem.tsx
View file @
ab509801
...
@@ -62,7 +62,7 @@ const TokenTransferListItem = ({
...
@@ -62,7 +62,7 @@ const TokenTransferListItem = ({
<
TxAdditionalInfo
hash=
{
txHash
}
isMobile
isLoading=
{
isLoading
}
/>
<
TxAdditionalInfo
hash=
{
txHash
}
isMobile
isLoading=
{
isLoading
}
/>
)
}
)
}
</
Flex
>
</
Flex
>
{
'
token_id
'
in
total
&&
total
.
token_id
!==
null
&&
<
NftEntity
hash=
{
token
.
address
}
id=
{
total
.
token_id
}
isLoading=
{
isLoading
}
/>
}
{
total
&&
'
token_id
'
in
total
&&
total
.
token_id
!==
null
&&
<
NftEntity
hash=
{
token
.
address
}
id=
{
total
.
token_id
}
isLoading=
{
isLoading
}
/>
}
{
showTxInfo
&&
txHash
&&
(
{
showTxInfo
&&
txHash
&&
(
<
Flex
justifyContent=
"space-between"
alignItems=
"center"
lineHeight=
"24px"
width=
"100%"
>
<
Flex
justifyContent=
"space-between"
alignItems=
"center"
lineHeight=
"24px"
width=
"100%"
>
<
TxEntity
<
TxEntity
...
...
ui/shared/TokenTransfer/TokenTransferTableItem.tsx
View file @
ab509801
...
@@ -66,7 +66,7 @@ const TokenTransferTableItem = ({
...
@@ -66,7 +66,7 @@ const TokenTransferTableItem = ({
</
Flex
>
</
Flex
>
</
Td
>
</
Td
>
<
Td
>
<
Td
>
{
'
token_id
'
in
total
&&
total
.
token_id
!==
null
&&
<
NftEntity
hash=
{
token
.
address
}
id=
{
total
.
token_id
}
isLoading=
{
isLoading
}
/>
}
{
total
&&
'
token_id
'
in
total
&&
total
.
token_id
!==
null
&&
<
NftEntity
hash=
{
token
.
address
}
id=
{
total
.
token_id
}
isLoading=
{
isLoading
}
/>
}
</
Td
>
</
Td
>
{
showTxInfo
&&
txHash
&&
(
{
showTxInfo
&&
txHash
&&
(
<
Td
>
<
Td
>
...
...
ui/token/TokenTransfer/TokenTransferListItem.tsx
View file @
ab509801
...
@@ -89,7 +89,7 @@ const TokenTransferListItem = ({
...
@@ -89,7 +89,7 @@ const TokenTransferListItem = ({
)
}
)
}
</
Grid
>
</
Grid
>
)
}
)
}
{
'
token_id
'
in
total
&&
(
NFT_TOKEN_TYPE_IDS
.
includes
(
token
.
type
))
&&
total
.
token_id
!==
null
&&
(
{
total
&&
'
token_id
'
in
total
&&
(
NFT_TOKEN_TYPE_IDS
.
includes
(
token
.
type
))
&&
total
.
token_id
!==
null
&&
(
<
NftEntity
<
NftEntity
hash=
{
token
.
address
}
hash=
{
token
.
address
}
id=
{
total
.
token_id
}
id=
{
total
.
token_id
}
...
...
ui/token/TokenTransfer/TokenTransferTableItem.tsx
View file @
ab509801
...
@@ -73,7 +73,7 @@ const TokenTransferTableItem = ({
...
@@ -73,7 +73,7 @@ const TokenTransferTableItem = ({
</
Td
>
</
Td
>
{
(
NFT_TOKEN_TYPE_IDS
.
includes
(
token
.
type
))
&&
(
{
(
NFT_TOKEN_TYPE_IDS
.
includes
(
token
.
type
))
&&
(
<
Td
>
<
Td
>
{
'
token_id
'
in
total
&&
total
.
token_id
!==
null
?
(
{
total
&&
'
token_id
'
in
total
&&
total
.
token_id
!==
null
?
(
<
NftEntity
<
NftEntity
hash=
{
token
.
address
}
hash=
{
token
.
address
}
id=
{
total
.
token_id
}
id=
{
total
.
token_id
}
...
...
ui/tokenTransfers/TokenTransfersListItem.tsx
View file @
ab509801
...
@@ -68,7 +68,7 @@ const TokenTransfersListItem = ({ item, isLoading }: Props) => {
...
@@ -68,7 +68,7 @@ const TokenTransfersListItem = ({ item, isLoading }: Props) => {
<
AddressEntity
address=
{
item
.
to
}
isLoading=
{
isLoading
}
truncation=
"constant"
/>
<
AddressEntity
address=
{
item
.
to
}
isLoading=
{
isLoading
}
truncation=
"constant"
/>
</
ListItemMobileGrid
.
Value
>
</
ListItemMobileGrid
.
Value
>
{
'
token_id
'
in
item
.
total
&&
(
NFT_TOKEN_TYPE_IDS
.
includes
(
item
.
token
.
type
))
&&
item
.
total
.
token_id
!==
null
&&
(
{
item
.
total
&&
'
token_id
'
in
item
.
total
&&
(
NFT_TOKEN_TYPE_IDS
.
includes
(
item
.
token
.
type
))
&&
item
.
total
.
token_id
!==
null
&&
(
<>
<>
<
ListItemMobileGrid
.
Label
isLoading=
{
isLoading
}
>
Token ID
</
ListItemMobileGrid
.
Label
>
<
ListItemMobileGrid
.
Label
isLoading=
{
isLoading
}
>
Token ID
</
ListItemMobileGrid
.
Label
>
<
ListItemMobileGrid
.
Value
overflow=
"hidden"
>
<
ListItemMobileGrid
.
Value
overflow=
"hidden"
>
...
...
ui/tokenTransfers/TokenTransfersTableItem.tsx
View file @
ab509801
...
@@ -62,7 +62,7 @@ const TokenTransferTableItem = ({ item, isLoading }: Props) => {
...
@@ -62,7 +62,7 @@ const TokenTransferTableItem = ({ item, isLoading }: Props) => {
/>
/>
</
Td
>
</
Td
>
<
Td
>
<
Td
>
{
'
token_id
'
in
item
.
total
&&
(
NFT_TOKEN_TYPE_IDS
.
includes
(
item
.
token
.
type
))
&&
item
.
total
.
token_id
!==
null
?
(
{
item
.
total
&&
'
token_id
'
in
item
.
total
&&
(
NFT_TOKEN_TYPE_IDS
.
includes
(
item
.
token
.
type
))
&&
item
.
total
.
token_id
!==
null
?
(
<
NftEntity
<
NftEntity
hash=
{
item
.
token
.
address
}
hash=
{
item
.
token
.
address
}
id=
{
item
.
total
.
token_id
}
id=
{
item
.
total
.
token_id
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment