@willphan1712000/frontend 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1890,6 +1890,9 @@ var Avatar = function(param) {
|
|
|
1890
1890
|
];
|
|
1891
1891
|
case 2:
|
|
1892
1892
|
initialImage.current = (_ref1 = _state.sent()) !== null && _ref1 !== void 0 ? _ref1 : src;
|
|
1893
|
+
src === initialImage.current ? setNew(function(prev) {
|
|
1894
|
+
return !prev;
|
|
1895
|
+
}) : void 0;
|
|
1893
1896
|
setValue(src ? initialImage.current : defaultImage.current);
|
|
1894
1897
|
return [
|
|
1895
1898
|
2
|
package/dist/index.mjs
CHANGED
|
@@ -1775,6 +1775,9 @@ var Avatar = function(param) {
|
|
|
1775
1775
|
];
|
|
1776
1776
|
case 2:
|
|
1777
1777
|
initialImage.current = (_ref1 = _state.sent()) !== null && _ref1 !== void 0 ? _ref1 : src;
|
|
1778
|
+
src === initialImage.current ? setNew(function(prev) {
|
|
1779
|
+
return !prev;
|
|
1780
|
+
}) : void 0;
|
|
1778
1781
|
setValue(src ? initialImage.current : defaultImage.current);
|
|
1779
1782
|
return [
|
|
1780
1783
|
2
|