figma-plugin icon indicating copy to clipboard operation
figma-plugin copied to clipboard

When on local document storage and then trying to push to git, modal says `Push to local`

Open six7 opened this issue 1 year ago • 0 comments

In packages/tokens-studio-for-figma/src/app/components/PushDialog.tsx we seem to be using the wrong storagetype - it seems to use the currently active one, not the one youre about to push to.

The dialog says Push to local even though i'm pushing to git.

likely on line 116

          title={t('pushTo', { provider: transformProviderName(storageType.provider) })}

storageType is the wrong provider to use and we'd rather need to use localApiState.provider

Image

six7 avatar Jun 15 '24 08:06 six7