Skip to content

Commit

Permalink
fix: remove unnecessary error calls (#1946)
Browse files Browse the repository at this point in the history
fixes a few error captures that were unnecessary.
  • Loading branch information
six7 authored Jun 7, 2023
1 parent 46e25ca commit 34642ef
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tokens-studio-for-figma",
"version": "1.0.0",
"plugin_version": "1.36.3",
"plugin_version": "1.36.4",
"description": "Tokens Studio for Figma",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion script/release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=figma-tokens@1.36.3
VERSION=figma-tokens@1.36.4
sentry-cli releases -p figma-tokens files "$VERSION" upload-sourcemaps --ext ts --ext tsx --ext map --ext js --ignore-file .sentryignore .
sentry-cli releases set-commits "$VERSION" --auto
sentry-cli releases finalize "$VERSION"
1 change: 0 additions & 1 deletion src/app/store/remoteTokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,6 @@ export default function useRemoteTokens() {
]);

const checkRemoteChange = useCallback(async (context: StorageTypeCredentials = api): Promise<boolean> => {
track('checkRemoteChange', { provider: context?.provider });
let hasChange = false;
switch (context?.provider) {
case StorageProviderType.JSONBIN: {
Expand Down
3 changes: 1 addition & 2 deletions src/plugin/setTextValuesOnTarget.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-param-reassign */
import { SingleTypographyToken } from '@/types/tokens';
import { transformValue } from './helpers';
import { trackFromPlugin, notifyUI } from './notifiers';
import { notifyUI } from './notifiers';

export default async function setTextValuesOnTarget(
target: TextNode | TextStyle,
Expand Down Expand Up @@ -80,7 +80,6 @@ export default async function setTextValuesOnTarget(
}
if (hasErrored) {
notifyUI(`Error setting font family/weight combination for ${family}/${style}`);
trackFromPlugin('Font not found', { family, style });
}
}
try {
Expand Down

0 comments on commit 34642ef

Please sign in to comment.