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
981f97fd
Unverified
Commit
981f97fd
authored
Jun 02, 2024
by
Igor Stuev
Committed by
GitHub
Jun 02, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1986 from blockscout/optimization-runs-fix
fix optimization runs condition
parents
6b762e96
4ea465e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ContractCode.tsx
ui/address/contract/ContractCode.tsx
+2
-1
No files found.
ui/address/contract/ContractCode.tsx
View file @
981f97fd
...
@@ -269,7 +269,8 @@ const ContractCode = ({ addressHash, contractQuery, channel }: Props) => {
...
@@ -269,7 +269,8 @@ const ContractCode = ({ addressHash, contractQuery, channel }: Props) => {
)
}
)
}
{
typeof
data
.
optimization_enabled
===
'
boolean
'
&&
{
typeof
data
.
optimization_enabled
===
'
boolean
'
&&
<
InfoItem
label=
"Optimization enabled"
content=
{
data
.
optimization_enabled
?
'
true
'
:
'
false
'
}
isLoading=
{
isPlaceholderData
}
/>
}
<
InfoItem
label=
"Optimization enabled"
content=
{
data
.
optimization_enabled
?
'
true
'
:
'
false
'
}
isLoading=
{
isPlaceholderData
}
/>
}
{
data
.
optimization_runs
&&
<
InfoItem
label=
"Optimization runs"
content=
{
String
(
data
.
optimization_runs
)
}
isLoading=
{
isPlaceholderData
}
/>
}
{
data
.
optimization_runs
!==
null
&&
<
InfoItem
label=
"Optimization runs"
content=
{
String
(
data
.
optimization_runs
)
}
isLoading=
{
isPlaceholderData
}
/>
}
{
data
.
verified_at
&&
{
data
.
verified_at
&&
<
InfoItem
label=
"Verified at"
content=
{
dayjs
(
data
.
verified_at
).
format
(
'
llll
'
)
}
wordBreak=
"break-word"
isLoading=
{
isPlaceholderData
}
/>
}
<
InfoItem
label=
"Verified at"
content=
{
dayjs
(
data
.
verified_at
).
format
(
'
llll
'
)
}
wordBreak=
"break-word"
isLoading=
{
isPlaceholderData
}
/>
}
{
data
.
file_path
&&
<
InfoItem
label=
"Contract file path"
content=
{
data
.
file_path
}
wordBreak=
"break-word"
isLoading=
{
isPlaceholderData
}
/>
}
{
data
.
file_path
&&
<
InfoItem
label=
"Contract file path"
content=
{
data
.
file_path
}
wordBreak=
"break-word"
isLoading=
{
isPlaceholderData
}
/>
}
...
...
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