Upgrade prettier and re-format codebase

This commit is contained in:
Simon Warta
2025-01-14 00:09:16 +01:00
parent 8247b8fe11
commit 4d53dbd082
12 changed files with 22 additions and 19 deletions
@@ -174,7 +174,7 @@ const MsgExecuteContractForm = ({
label="Msg JSON"
content={{ text: msgContent }}
onChange={(newMsgContent, _, { contentErrors }) => {
setMsgContent("text" in newMsgContent ? newMsgContent.text ?? "{}" : "{}");
setMsgContent("text" in newMsgContent ? (newMsgContent.text ?? "{}") : "{}");
jsonError.current = !!contentErrors;
}}
/>
@@ -252,7 +252,7 @@ const MsgInstantiateContract2Form = ({
label="Msg JSON"
content={{ text: msgContent }}
onChange={(newMsgContent, _, { contentErrors }) => {
setMsgContent("text" in newMsgContent ? newMsgContent.text ?? "{}" : "{}");
setMsgContent("text" in newMsgContent ? (newMsgContent.text ?? "{}") : "{}");
jsonError.current = !!contentErrors;
}}
/>
@@ -215,7 +215,7 @@ const MsgInstantiateContractForm = ({
label="Msg JSON"
content={{ text: msgContent }}
onChange={(newMsgContent, _, { contentErrors }) => {
setMsgContent("text" in newMsgContent ? newMsgContent.text ?? "{}" : "{}");
setMsgContent("text" in newMsgContent ? (newMsgContent.text ?? "{}") : "{}");
jsonError.current = !!contentErrors;
}}
/>
@@ -120,7 +120,7 @@ const MsgMigrateContractForm = ({
label="Msg JSON"
content={{ text: msgContent }}
onChange={(newMsgContent, _, { contentErrors }) => {
setMsgContent("text" in newMsgContent ? newMsgContent.text ?? "{}" : "{}");
setMsgContent("text" in newMsgContent ? (newMsgContent.text ?? "{}") : "{}");
jsonError.current = !!contentErrors;
}}
/>