Skip to content

Commit 1ca99a4

Browse files
authored
replace deprecated substr() with substring() method
1 parent afac864 commit 1ca99a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/common/Card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const Card = ({ id, title, description, colorPref }) => (
4242
<>
4343
<p>
4444
{String(description)
45-
.substr(0, 33)
45+
.substring(0, 33)
4646
.trim()}
4747
...
4848
</p>

0 commit comments

Comments
 (0)