File tree Expand file tree Collapse file tree 2 files changed +27
-16
lines changed
packages/thirdweb/src/react/web/ui/Bridge Expand file tree Collapse file tree 2 files changed +27
-16
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ TransactionWidget: Hides the "UnknownContract" label
Original file line number Diff line number Diff line change @@ -212,22 +212,28 @@ export function TransactionPayment({
212
212
< Spacer y = "md" />
213
213
214
214
{ /* Contract Info */ }
215
- < Container
216
- flex = "row"
217
- style = { {
218
- alignItems : "center" ,
219
- justifyContent : "space-between" ,
220
- } }
221
- >
222
- < Text color = "secondaryText" size = "sm" >
223
- Contract
224
- </ Text >
225
- < Text color = "primaryText" size = "sm" >
226
- { contractName }
227
- </ Text >
228
- </ Container >
229
-
230
- < Spacer y = "xs" />
215
+ { contractName !== "UnknownContract" &&
216
+ contractName !== undefined &&
217
+ contractName !== "Unknown Contract" && (
218
+ < >
219
+ < Container
220
+ flex = "row"
221
+ style = { {
222
+ alignItems : "center" ,
223
+ justifyContent : "space-between" ,
224
+ } }
225
+ >
226
+ < Text color = "secondaryText" size = "sm" >
227
+ Contract
228
+ </ Text >
229
+ < Text color = "primaryText" size = "sm" >
230
+ { contractName }
231
+ </ Text >
232
+ </ Container >
233
+
234
+ < Spacer y = "xs" />
235
+ </ >
236
+ ) }
231
237
232
238
{ /* Address */ }
233
239
< Container
You can’t perform that action at this time.
0 commit comments