tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.33k stars 191 forks source link

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

Open six7 opened 1 month ago

six7 commented 1 month ago

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