diff --git a/developer-preview/src/lib/getPreviewData.tsx b/developer-preview/src/lib/getPreviewData.tsx index 8f86fc0..bdb05f9 100644 --- a/developer-preview/src/lib/getPreviewData.tsx +++ b/developer-preview/src/lib/getPreviewData.tsx @@ -51,6 +51,11 @@ const processFields = ( ); break; } + case "unit": + displayValue = `${ + Number(value) / 10 ** Number(field.params?.decimals ?? 0) + }${field.params?.base ? ` ${String(field.params.base)}` : ""}`; + break; case "addressName": if ( typeof value === "string" &&