fix(create-page): only show signers in counterpart select
This commit is contained in:
parent
c2199b79bd
commit
29e6c85150
@ -19,7 +19,7 @@ import styles from './style.module.scss'
|
|||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
|
|
||||||
import * as PDFJS from 'pdfjs-dist'
|
import * as PDFJS from 'pdfjs-dist'
|
||||||
import { ProfileMetadata, User } from '../../types'
|
import { ProfileMetadata, User, UserRole } from '../../types'
|
||||||
import {
|
import {
|
||||||
PdfFile,
|
PdfFile,
|
||||||
DrawTool,
|
DrawTool,
|
||||||
@ -474,7 +474,9 @@ export const DrawPDFFields = (props: Props) => {
|
|||||||
labelId="counterparts"
|
labelId="counterparts"
|
||||||
label="Counterparts"
|
label="Counterparts"
|
||||||
>
|
>
|
||||||
{props.users.map((user, index) => {
|
{props.users
|
||||||
|
.filter((u) => u.role === UserRole.signer)
|
||||||
|
.map((user, index) => {
|
||||||
let displayValue = truncate(
|
let displayValue = truncate(
|
||||||
hexToNpub(user.pubkey),
|
hexToNpub(user.pubkey),
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user