File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed
ui/pages/confirmations/components/confirm/signature-message Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -19,28 +19,26 @@ const SignatureMessage: React.FC = memo(() => {
1919 const t = useI18nContext ( ) ;
2020 const currentConfirmation = useSelector ( currentConfirmationSelector ) ;
2121
22- const args = useMemo ( ( ) => {
22+ const rowConfigs = useMemo ( ( ) => {
2323 if (
2424 ! currentConfirmation ||
2525 currentConfirmation . type !== MESSAGE_TYPE . PERSONAL_SIGN ||
2626 ! currentConfirmation . msgParams ?. data
2727 ) {
2828 return null ;
2929 }
30- return {
31- rowConfigs : [
32- {
33- label : t ( 'message' ) ,
34- type : ConfirmInfoRowType . Text ,
35- rowProps : {
36- text : hexToText ( currentConfirmation . msgParams ?. data ) ,
37- } ,
30+ return [
31+ {
32+ label : t ( 'message' ) ,
33+ type : ConfirmInfoRowType . Text ,
34+ rowProps : {
35+ text : hexToText ( currentConfirmation . msgParams ?. data ) ,
3836 } ,
39- ] ,
40- } ;
37+ } ,
38+ ] ;
4139 } , [ currentConfirmation ] ) ;
4240
43- if ( ! args ) {
41+ if ( ! rowConfigs ?. length ) {
4442 return null ;
4543 }
4644
@@ -51,7 +49,7 @@ const SignatureMessage: React.FC = memo(() => {
5149 padding = { 2 }
5250 marginBottom = { 4 }
5351 >
54- < ConfirmInfo { ... args } />
52+ < ConfirmInfo rowConfigs = { rowConfigs } />
5553 </ Box >
5654 ) ;
5755} ) ;
You can’t perform that action at this time.
0 commit comments