interface: fix field name that broke GCP support

Tests would be great, wouldn't they...
This commit is contained in:
J 2021-02-27 00:08:51 +00:00
parent c1b259af5b
commit d8a7ee56e1

View File

@ -23,8 +23,8 @@ const useStorage = (s3: S3State, gcp: GcpState,
useEffect(() => {
// prefer GCP if available, else use S3.
if (gcp.current !== undefined) {
client.current = new GcpClient(gcp.current.accessKey);
if (gcp.token !== undefined) {
client.current = new GcpClient(gcp.token.accessKey);
} else {
// XX ships currently always have S3 credentials, but the fields are all
// set to '' if they are not configured.