Skip to content

Commit b403b39

Browse files
authored
Merge pull request #6 from cornernote/patch-1
for some reason generate() is called twice
2 parents dd31843 + 72a9a94 commit b403b39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LetterAvatar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public function generate()
116116
$words = $this->break_words($this->name);
117117

118118
$number_of_word = 1;
119+
$this->name_initials = '';
119120
foreach ($words as $word) {
120121

121122
if ($number_of_word > 2)

0 commit comments

Comments
 (0)