Skip to content

Commit

Permalink
fixed undefined for Marshall Islands LLC + now can visualize UNA pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
gcattinp committed Oct 7, 2023
1 parent a54d1f9 commit 978ab7c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/minter/Confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type Message = {
}

export default function Confirm({ store, setStore, setView }: Props) {
console.log("store.juris:", store.juris);
const [checked, setChecked] = useState(false)
const [loading, setLoading] = useState(false)
const [message, setMessage] = useState<Message>({
Expand Down Expand Up @@ -224,15 +225,21 @@ export default function Confirm({ store, setStore, setView }: Props) {
<Stack>
<Stack direction={'horizontal'} align="center" justify={'space-between'}>
<Text size="headingTwo" color="foreground">
{"Confirm "}
{store.entity === 'UNA' && store.juris ? store.entity : getName(store.juris, store.entity) + " "}
{" for " + store.name}
{"Confirm "}
{store.entity === 'UNA'
? store.entity
: store.juris === 'mi'
? 'Marshall Islands ' + store.entity
: getName(store.juris, store.entity) + " "
}
{" for " + store.name}
</Text>
<Button onClick={() => setView(1)} aria-label="Go back!" variant="transparent" shape="circle">
<IconArrowLeft />
</Button>
</Stack>
<PDFViewer src={`/legal/${store.juris + store.entity}.pdf`} />
{/* Same here, pdf wasn't loading */}
<PDFViewer src={`/legal/${store.entity === 'UNA' ? 'wyUNA' : store.juris + store.entity}.pdf`} />
<Box
display="flex"
alignItems={'center'}
Expand Down

0 comments on commit 978ab7c

Please sign in to comment.