fedimint / ui

https://ui-umber-ten.vercel.app
MIT License
27 stars 41 forks source link

ConnectGuardians.tsx displays wrong value #1

Closed EthnTuttle closed 1 year ago

EthnTuttle commented 1 year ago
        <CopyInput
          value={process.env.REACT_APP_FM_CONFIG_API || ''}
          size='lg'
          buttonLeftIcon={<Icon as={CopyIcon} />}
        />

We currently use the UI enviroment variable as the connection. However, this is incorrect and should be the FM_API_URL passed into the Coordinators config for fedimintd.

EthnTuttle commented 1 year ago

Related. getMyPeerId() in api.ts checks FM_API_URL against REACT_APP_FM_CONFIG_API, which are different when running the API on same localhost as the UI.

EthnTuttle commented 1 year ago

https://github.com/fedimint/ui/issues/19 Related.