Remove unneeded toString in PluginDetail

This commit is contained in:
Tyler Hallada 2022-08-21 01:06:45 -04:00
parent 4f3a439679
commit 921247343c

View File

@ -22,10 +22,7 @@ const buildPluginProps = (
): PluginProps => {
const dataPlugin = data && data.plugins.length > 0 && data.plugins[0];
return {
hash:
(plugin && plugin.hash) ||
(dataPlugin && dataPlugin.hash.toString(36)) ||
"",
hash: (plugin && plugin.hash) || (dataPlugin && dataPlugin.hash) || "",
size: plugin?.size || (dataPlugin && dataPlugin.size) || 0,
author:
plugin?.parsed?.header.author ||