From d8a7ee56e137190418971c759226e9bb632b5e13 Mon Sep 17 00:00:00 2001 From: J Date: Sat, 27 Feb 2021 00:08:51 +0000 Subject: [PATCH] interface: fix field name that broke GCP support Tests would be great, wouldn't they... --- pkg/interface/src/logic/lib/useStorage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/interface/src/logic/lib/useStorage.ts b/pkg/interface/src/logic/lib/useStorage.ts index ec71f96cbf..32442d8e1d 100644 --- a/pkg/interface/src/logic/lib/useStorage.ts +++ b/pkg/interface/src/logic/lib/useStorage.ts @@ -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.