Skip to content

Commit

Permalink
feat: throw error
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair committed Mar 27, 2024
1 parent 737d2a2 commit 27e9af0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/typography/Base/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,8 @@ const Base = React.forwardRef<HTMLElement, BlockProps>((props, ref) => {

copyConfig.onCopy?.(e);
} catch (error) {
if (error instanceof Error) {
throw error;
} else {
console.error(error);
}
setCopyLoading(false);
throw error;

Check warning on line 219 in components/typography/Base/index.tsx

View check run for this annotation

Codecov / codecov/patch

components/typography/Base/index.tsx#L218-L219

Added lines #L218 - L219 were not covered by tests
}
};

Expand Down

0 comments on commit 27e9af0

Please sign in to comment.