Skip to content

Commit 47eef43

Browse files
authored
Merge pull request #1016 from Jisan-mia/Jisan-mia-patch-1
chore: Update deprecated substr() to substring()
2 parents 44974a3 + 1ca99a4 commit 47eef43

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)